package com.esrc.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @description:
 * @author: lx
 * @time: 2025/6/16
 */
@Data
@TableName("region")
@ApiModel(value = "region对象", description = "地区信息")
public class Region {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("父节点id")
    private Long parentId;
    @ApiModelProperty("地区代码")
    private String code;
    @ApiModelProperty("地区名称")
    private String name;
}
